import request from '@/utils/request'

// 查询年费信息列表
export function listAnnuity(query) {
  return request({
    url: '/annuity/annuity/list',
    method: 'get',
    params: query
  })
}

// 查询年费信息详细
export function getAnnuity(annuityRecordId) {
  return request({
    url: '/annuity/annuity/' + annuityRecordId,
    method: 'get'
  })
}

// 新增年费信息
export function addAnnuity(data) {
  return request({
    url: '/annuity/annuity',
    method: 'post',
    data: data
  })
}

// 修改年费信息
export function updateAnnuity(data) {
  return request({
    url: '/annuity/annuity',
    method: 'put',
    data: data
  })
}

// 删除年费信息
export function delAnnuity(annuityRecordId) {
  return request({
    url: '/annuity/annuity/' + annuityRecordId,
    method: 'delete'
  })
}
